$line-height: 25px;
$p-m: 5px;
$p-l: 10px;
$p-s: 3px;
$border-radius: 3px;
$input-text-size: 12px;
.text-overflow {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.w-130px {
  width: 130px !important;
}
.w-110px {
  width: 110px !important;
}
.w-100 {
  width: 100%;
}
.settings-basic-tips {
  margin-left: 80px;
}
.chart-date-range-picker {
  margin-top: -6px;
  z-index: 10;
}
.confirm-box-content {
  padding: $p-l;
  .btn-container {
    position: absolute;
    bottom: 0px;
    right: 0px;
  }
}
.modal-cover {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.4);
  top: 0;
  right: 0;
  z-index: 10;
  margin: auto;
  left: 0;
  .modal {
    position: absolute;
    @include background-color-normal();
    right: 0;
    left: 0;
    margin-right: auto;
    margin-left: auto;
    box-shadow: 0px 0px 6px 2px rgba(50, 50, 50, 0.5);
    .modal-header {
      height: 20px;
      padding: $p-m;
      display: flex;
      flex-direction: row;
      box-shadow: 0px 2px 3px 0px rgba(50, 50, 50, 0.5);
      .modal-title {
        flex-grow: 1;
      }
      .modal-close-btn {
        float: right;
        width: 20px;
        text-align: center;
        line-height: 20px;
        cursor: pointer;
      }
      .modal-close-btn:hover {
        @include background-color-danger();
        text-align: center;
        line-height: 20px;
      }
    }
  }
}
.message {
  padding: $p-l;
}
.message[type='success'] {
  @include background-color-success();
  @include text-color-normal-reverse();
}
.message[type='warning'] {
  @include background-color-danger();
  @include text-color-normal-reverse();
}
.autocompelete-item-container {
  display: flex;
  flex-direction: row;
  .autocompelete-label {
    flex-grow: 1;
    width: calc(100% - 20px);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    word-break: break-all;
  }
  .autocompelete-close {
    display: none;
  }
  .autocompelete-close {
    @include text-color-danger();
  }
}
.autocompelete-item-container:hover .autocompelete-close {
  display: inline;
}

// element ui start
.el-month-table td.today .cell {
  @include text-color-main();
  font-weight: 700;
}
.el-month-table td .cell:hover {
  @include text-color-main();
}
.el-month-table td.current:not(.disabled) .cell {
  @include text-color-main();
}
.el-date-table td.current:not(.disabled) span {
  @include text-color-normal-reverse();
  @include background-color-main();
}
.el-date-table td.available:hover {
  @include text-color-main();
}
.el-month-table td.end-date .cell,
.el-month-table td.start-date .cell {
  @include text-color-normal-reverse();
  @include background-color-main();
}
.el-date-picker__header-label.active,
.el-date-picker__header-label:hover {
  @include text-color-main();
}
.el-input.is-active .el-input__inner,
.el-input__inner:focus {
  @include border-color-main();
  outline: 0;
}
.el-date-editor .el-range__close-icon {
  width: 5px !important;
}
// element ui end
.app-divider {
  margin-top: 5px;
  border: 1px solid;
  @include border-color-normal();
  position: relative;
  .app-divider-icon {
    position: absolute;
    width: fit-content;
    top: -10px;
    padding: $p-s;
    line-height: 14px;
    cursor: pointer;
    @include background-color-normal();
  }
  .app-divider-icon[position='right'] {
    right: 0;
  }
  .app-divider-icon[position='center'] {
    left: 0;
    right: 0;
    margin: auto;
  }
}
button {
  border: none;
  line-height: $line-height;
  cursor: pointer;
  display: inline-block;
  margin: $p-s;
}
button:hover {
  opacity: 0.8;
}
button[role='text'] {
  background-color: inherit;
  display: inline-block;
  @include text-color-main();
}
button[role='primary'] {
  @include background-color-main();
  @include text-color-normal-reverse();
}
button[role='danger'] {
  @include background-color-danger();
  @include text-color-normal-reverse();
}
button[circle] {
  border-radius: 50%;
  border: 1px solid #eee;
  width: 40px;
}
button[circle][role] {
  border: none;
}

button[circle][size='medium'] {
  line-height: 40px;
}
button:focus {
  outline: none;
}

.win-handler {
  line-height: 33px !important;
  position: fixed;
  width: 100%;
  height: 33px;
  display: flex;
  flex-direction: row;
  z-index: 20;
  @include box-normal-shadow-color();
  .win-handler-left {
    max-width: 221px;
    .win-handler-logo-container {
      display: inline-block;
      height: 27px;
      padding: $p-m $p-l;
      .win-handler-logo {
        height: 25px;
        -webkit-user-select: none;
      }
    }
    .tool {
      vertical-align: super;
      display: inline-block;
    }
  }

  .win-handler-button {
    width: 108px;
    text-align: right;
  }
  .win-handler-button {
    i:hover {
      @include background-color-notice();
    }
    i {
      padding: $p-m $p-l;
    }
    i[class='iconfont icon-guanbi1']:hover {
      @include text-color-normal-reverse();
      @include background-color-danger();
    }
  }
  .win-drag {
    text-align: center;
    -webkit-app-region: drag;
    -webkit-user-select: none;
    flex-grow: 1;
  }
}
.menu {
  display: inline-block;
  position: relative;
  cursor: pointer;
  border-radius: $border-radius;
  .menu-label {
    display: flex;
    $size: 20px;
    width: $size;
    height: $size;
    border-radius: $size;
    @include text-color-normal-reverse();
    @include background-color-main();
    justify-content: center;
    line-height: $size;
    font-weight: bold;
    font-size: 12px;
  }
  .menu-list {
    line-height: 20px;
    border-radius: $border-radius;
    position: absolute;
    list-style-type: none;
    margin-block-start: 0em;
    margin-block-end: 0em;
    padding-inline-start: 0px;
    display: none;
    padding: $p-m;
    width: fit-content;
    left: -5px;
    top: 25px;
    z-index: 20;
    @include background-color-normal();
    @include box-normal-shadow-color();
    li {
      padding: $p-m;
      cursor: pointer;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    li:hover {
      @include text-color-main();
    }
    li:first-child:hover {
      color: inherit;
    }
  }
  .menu-list::before {
    position: absolute;
    top: -5px;
    left: 10px;
    width: 0;
    height: 0;
    content: '';
    border: 5px solid;
    @include trangle-border-color();
    transform: rotate(-45deg);
    @include box-trangle-shadow-color();
  }
}
.menu:hover {
  .menu-list {
    display: inline-block;
  }
}
.user-form-width {
  width: 260px;
}
@media screen and (max-width: 480px) {
  .user-form-width {
    width: 100%;
  }
}
.app-card {
  border: 1px solid #eee;
  border-radius: $border-radius;
  padding: $p-l;
}
.app-card[shadow='hover']:hover {
  box-shadow: 4px 5px 8px 1px #eee;
}

.l-h-1-6em {
  line-height: 1.6em;
}
.text-r {
  text-align: right;
}
.text-c {
  text-align: center;
}
.float-l {
  float: left;
}
.float-r {
  float: right;
}
.padding-20px {
  padding: 20px;
}
.color-warning {
  @include text-color-warning();
}
.addBtn {
  position: absolute;
  left: -46px;
  box-shadow: 0px 4px 8px #666;
  top: 30px;
  bottom: auto;
  z-index: 1;
}
.list-container {
  margin-left: 20%;
  margin-right: 20%;
  position: relative;
  height: 0;
  padding-top: 10px;
  .list-toolbar {
    height: 28px;
  }
  .list-group {
    overflow-y: auto;
    padding-right: 3px;
  }
}
.list-group-container {
  margin-left: 15%;
  margin-right: 15%;
  position: relative;
}
@media screen and (max-width: 768px) {
  .list-container {
    margin-left: 0%;
    margin-right: 0%;
  }
  .addBtn {
    left: calc(100% - 46px);
    bottom: 10px;
    top: auto;
  }
}
@media screen and (max-width: 768px) {
  .list-group-container {
    margin-left: 0px;
    margin-right: 0px;
  }
}
.app-tab {
  .app-tab-bar {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin-block-end: 0em;
    margin-block-start: 0em;
    padding-inline-start: 0px;
    border-bottom: 1px solid #eee;
    li {
      padding: $p-m $p-l;
      opacity: 0.8;
      cursor: pointer;
      border-bottom: 2px solid rgba(255, 255, 255, 1);
    }
    li[active] {
      @include text-color-main();
      @include border-color-main();
    }
  }
}
@keyframes animate-expend{
  0%{
    font-size: 16px;
  }
  100%{
    font-size: 20px;
  }
}
.app-select {
  position: relative;
  display: inline-block;
  border: 1px solid;
  border-radius: $border-radius;
  font-size: $input-text-size;
  @include border-color-normal();
  .app-option-container {
    position: absolute;
    @include background-color-normal();
    z-index: 10;
    @include box-normal-shadow-color();
    width: max-content;
  }
  .app-option-container[position='top'] {
    bottom: 28px;
  }
  .app-option {
    padding-left: $p-m;
    padding-right: $p-m;
    cursor: pointer;
    height: 28px;
    line-height: 28px;
  }
  .app-option:hover {
    @include text-color-main();
  }
  .app-option[active] {
    @include background-color-main();
    @include text-color-normal-reverse();
  }
  .app-option[active]:hover {
    opacity: 0.8;
  }
}
.paging-container {
  display: flex;
  float: right;
  .paging-btn,
  .page-num {
    cursor: pointer;
  }
  .paging-btn,
  .page-num,
  .paging-total {
    line-height: 30px;
    padding-left: 3px;
    padding-right: 3px;
  }
  .page-num-container {
    display: flex;
    list-style: none;
    margin-block-start: 0;
    margin-block-end: 0;
    padding-inline-start: 0;
    .paging-btn:hover,
    .page-num[active] {
      @include text-color-main();
    }
  }
}
html,
body {
  @include background-color-normal();
  padding: 0px;
  margin: 0px;
  @include text-color-normal();
}
html {
  box-sizing: border-box;
  font-size: 14px;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
}
.app-content {
  min-height: calc(100vh - 60px);
  padding-top: 45px;
  padding-left: $p-m;
  padding-right: $p-m;
}
.flex-grow-1 {
  flex-grow: 1;
}
.d-flex-col {
  display: flex;
  flex-direction: column !important;
}

.text-info {
  font-size: 12px;
  @include text-color-info();
  padding: 1px $p-s;
}
.w-300px {
  width: 300px;
}
.horizon-center {
  margin-left: auto;
  margin-right: auto;
}
.vertical-middle {
  margin-top: auto;
  margin-bottom: auto;
}
@media screen and (min-width: 470px) {
  .margin-left-xs-60px {
    margin-left: -60px;
  }
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  border-radius: $border-radius;
}

::-webkit-scrollbar-thumb {
  border-radius: $border-radius;
  background: #ddd;
}
::-webkit-scrollbar-thumb:hover {
  background: #ccc;
}
::-webkit-scrollbar-thumb:active {
  background: #999;
}
